inherited FPesquisaResumoFinanceiroCentroCustoCP: TFPesquisaResumoFinanceiroCentroCustoCP
  Left = 151
  Top = 33
  Caption = 'Pesquisa Resumo Financeiro Centro Custo Contas Pagar'
  ClientHeight = 393
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 13
  inherited Panel2: TPanel
    inherited BtnLimpar: TBitBtn
      OnClick = BtnLimparClick
    end
    inherited BtnImprimir: TBitBtn
      OnClick = BtnImprimirClick
    end
    inherited BtnSelecionar: TBitBtn
      Tag = 5
      Enabled = False
    end
  end
  inherited Panel1: TPanel
    Height = 352
    object Label2: TLabel [0]
      Left = 3
      Top = 0
      Width = 81
      Height = 13
      Caption = 'Grupo Financeiro'
    end
    object Label3: TLabel [1]
      Left = 3
      Top = 76
      Width = 114
      Height = 13
      Caption = 'Classifica'#231#227'o Financeira'
    end
    object Label9: TLabel [2]
      Left = 3
      Top = 39
      Width = 51
      Height = 13
      Caption = '1'#176' Per'#237'odo'
    end
    object Label6: TLabel [3]
      Left = 91
      Top = 57
      Width = 6
      Height = 13
      Caption = 'a'
    end
    object Label5: TLabel [4]
      Left = 197
      Top = 39
      Width = 51
      Height = 13
      Caption = '2'#176' Per'#237'odo'
    end
    object Label7: TLabel [5]
      Left = 286
      Top = 57
      Width = 6
      Height = 13
      Caption = 'a'
    end
    object Label10: TLabel [6]
      Left = 3
      Top = 211
      Width = 46
      Height = 13
      Caption = 'Empresas'
    end
    object SpeedButton1: TSpeedButton [7]
      Tag = 1
      Left = 387
      Top = 89
      Width = 21
      Height = 20
      Caption = '-->'
      OnClick = SpeedButton1Click
    end
    object Label16: TLabel [8]
      Left = 3
      Top = 111
      Width = 76
      Height = 13
      Caption = 'Centro de Custo'
    end
    object SpeedButton3: TSpeedButton [9]
      Tag = 1
      Left = 387
      Top = 125
      Width = 21
      Height = 20
      Caption = '-->'
      OnClick = SpeedButton3Click
    end
    object Label18: TLabel [10]
      Left = 87
      Top = 0
      Width = 54
      Height = 13
      Caption = 'Gr C. Custo'
    end
    inherited DBGrid1: TDBGrid
      Top = 269
      Height = 62
      TabOrder = 14
      Columns = <
        item
          Expanded = False
          FieldName = 'ESTRUTURACENTRO'
          Title.Caption = 'Estrutura'
          Width = 95
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'DESCRICAOCENTRO'
          Title.Caption = 'Centro Custo'
          Width = 295
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'VALOR1PERIODO'
          Title.Caption = 'Valor 1 Per'#237'odo'
          Width = 85
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'VALOR2PERIODO'
          Title.Caption = 'Valor 2 Per'#237'odo'
          Width = 81
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'MEDIA2PERIODO'
          Title.Caption = 'M'#233'dia 2 Per'#237'odo'
          Width = 85
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'VARIACAO'
          Title.Caption = 'Varia'#231#227'o'
          Width = 68
          Visible = True
        end>
    end
    inherited Panel3: TPanel
      Top = 331
      TabOrder = 15
    end
    object EGrupoFinanceiro: TEdit
      Left = 3
      Top = 15
      Width = 46
      Height = 21
      MaxLength = 2
      TabOrder = 0
    end
    object DEDataIni1: TDateEdit
      Left = 3
      Top = 53
      Width = 87
      Height = 21
      NumGlyphs = 2
      TabOrder = 2
    end
    object DEDataFim1: TDateEdit
      Left = 100
      Top = 53
      Width = 87
      Height = 21
      NumGlyphs = 2
      TabOrder = 3
    end
    object DEDataIni2: TDateEdit
      Left = 197
      Top = 53
      Width = 87
      Height = 21
      NumGlyphs = 2
      TabOrder = 4
    end
    object DEDataFim2: TDateEdit
      Left = 296
      Top = 53
      Width = 87
      Height = 21
      NumGlyphs = 2
      TabOrder = 5
    end
    object RGIndicacao: TRadioGroup
      Left = 4
      Top = 147
      Width = 116
      Height = 46
      Caption = 'Indica'#231#227'o p/ analise'
      ItemIndex = 0
      Items.Strings = (
        'Comparativo'
        'M'#233'dia 2'#176' Per'#237'odo')
      TabOrder = 8
      OnClick = RGIndicacaoClick
    end
    object CkBTodasEmpresas: TCheckBox
      Left = 3
      Top = 195
      Width = 118
      Height = 17
      Caption = 'Todas as Empresas'
      TabOrder = 11
      OnClick = CkBTodasEmpresasClick
    end
    object CLBEmpresas: TCheckListBox
      Left = 1
      Top = 229
      Width = 411
      Height = 40
      Align = alBottom
      Columns = 1
      ItemHeight = 13
      TabOrder = 13
    end
    object DBLCBPlano: TDBLookupComboBox
      Left = 3
      Top = 90
      Width = 382
      Height = 21
      DataField = 'LANC_PLANO'
      KeyField = 'CODIGO'
      ListField = 'DESCRICAO'
      ListSource = DSPlano
      TabOrder = 6
      OnKeyDown = DBLCBPlanoKeyDown
    end
    object DBLCBCentroCusto: TDBLookupComboBox
      Left = 3
      Top = 125
      Width = 382
      Height = 21
      KeyField = 'CODIGO'
      ListField = 'DESCRICAO'
      ListSource = DSCentro
      TabOrder = 7
      OnKeyDown = DBLCBPlanoKeyDown
    end
    object ChBPlanoSintetico: TCheckBox
      Left = 152
      Top = 195
      Width = 230
      Height = 17
      Caption = 'Apenas Centro Custo Sint'#233'tico'
      TabOrder = 12
    end
    object RGData: TRadioGroup
      Left = 123
      Top = 147
      Width = 96
      Height = 46
      Caption = 'Data'
      ItemIndex = 0
      Items.Strings = (
        'Lan'#231'amento'
        'Vencimento')
      TabOrder = 9
      OnClick = RGIndicacaoClick
    end
    object RGSituacao: TRadioGroup
      Left = 232
      Top = 147
      Width = 86
      Height = 46
      Caption = 'Situa'#231#227'o'
      ItemIndex = 0
      Items.Strings = (
        'Todos'
        'Em abertos')
      TabOrder = 10
      OnClick = RGIndicacaoClick
    end
    object EGrupoCentroCusto: TEdit
      Left = 87
      Top = 15
      Width = 46
      Height = 21
      MaxLength = 2
      TabOrder = 1
    end
  end
  inherited QPesquisa: TQuery
    SQL.Strings = (
      
        'Select PlanoContas.Estrutura as Estrutura ,PlanoContas.Descricao' +
        ' as Descricao,PlanoContas.CodPai as Pai,PlanoContas.Natureza as ' +
        'Natureza,PlanoContas.Tipo as Tipo, Sum(Cp_Valor) as Valor,CP_Dat' +
        'aDocumento as DataDocumento,CP_DataVencimento as DataVencimento'
      
        'from CentroCusto Right join (ContasPagar Inner Join  planoContas' +
        ' on CP_Plano = PlanoContas.Codigo )  On CentroCusto.Codigo = CP_' +
        'Centrocusto '
      ''
      
        'Group by  PlanoContas.Estrutura,PlanoContas.Descricao,PlanoConta' +
        's.CodPai,PlanoContas.Natureza,PlanoContas.Tipo,CP_DataDocumento,' +
        'CP_DataVencimento'
      '')
    Left = 264
    Top = 225
  end
  inherited DSPesquisa: TDataSource
    DataSet = nil
    Left = 296
    Top = 225
  end
  object QAux: TQuery
    DatabaseName = 'base'
    Left = 229
    Top = 226
  end
  object QResumoFinanceiro: TQuery
    DatabaseName = 'baseLocal'
    RequestLive = True
    SQL.Strings = (
      'Select * from ResumoFinanceiroCONTASPAGAR')
    Left = 149
    Top = 226
  end
  object QAux2: TQuery
    DatabaseName = 'baseLocal'
    Left = 189
    Top = 226
  end
  object DSPlano: TDataSource
    DataSet = DMFinanceiro.QPlano
    Left = 96
    Top = 120
  end
  object DSCentro: TDataSource
    DataSet = DMFinanceiro.QCentro
    Left = 128
    Top = 152
  end
end
